package machinery.factory;

import machinery.Machinery;
import machinery.Harvester;

/**
 * 工厂方法模式：收割机工厂实现
 */
public class HarvesterFactory implements MachineryFactory {
    @Override
    public Machinery createMachinery() {

        System.out.println("创建收割机");
        return new Harvester("智能收割机001");
    }
} 